package com.example.mybatisplus.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;

@AllArgsConstructor
@NoArgsConstructor
@Data
@TableName(value = "other")
@Accessors(chain = true)
public class Other {
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    @TableField(keepGlobalFormat = true)
    private String otherName;
    @TableField
    private Date otherCreateTime;
    public Other(String otherName,Date otherCreateTime){
        this.otherName=otherName;
        this.otherCreateTime=otherCreateTime;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Override
    public String toString() {
        String str="Other{" +
                "id=" + id +
                ", otherName='" + otherName + '\'' +
                ", otherCreateTime=" + otherCreateTime+"}";
        return str;
    }
}
